System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
string appPath = System.IO.Path.GetDirectoryName(Application.ExecutablePath);